package com.zhang.springcloud.controller;

import com.zhang.springcloud.domain.CommonResult;
import com.zhang.springcloud.domain.Order;
import com.zhang.springcloud.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class OrderController {
    @Autowired
    OrderService orderService;
    @GetMapping("/order/create")
    public CommonResult create(Order order){
        orderService.create(order);
        return new CommonResult(200,"成功",null);
    }

}
